﻿using Coldairarrow.Business.Base_Company;
using Coldairarrow.Entity.Base_Company;
using Coldairarrow.Util;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Api.Controllers.Base_Company
{
    [Route("/Base_Company/[controller]/[action]")]
    public class Base_ComapnyHBImgController : BaseApiController
    {
        #region DI

        public Base_ComapnyHBImgController(IBase_ComapnyHBImgBusiness base_ComapnyHBImgBus)
        {
            _base_ComapnyHBImgBus = base_ComapnyHBImgBus;
        }

        IBase_ComapnyHBImgBusiness _base_ComapnyHBImgBus { get; }

        #endregion

        #region 获取
     

        /// <summary>
        /// 获取详情
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [HttpPost]
        public async Task<Base_ComapnyHBImg> GetTheData(IdInputDTO input)
        {
            return await _base_ComapnyHBImgBus.GetTheDataAsync(input.id);
        }

        #endregion

        #region 提交
        
       
        [HttpPost]
        public async Task DeleteData(List<string> ids)
        {
            await _base_ComapnyHBImgBus.DeleteDataAsync(ids);
        }

        #endregion
    }
}